#!/bin/sh
if [ "$1" == "" ] || [ $2 == "" ];
then
	echo "Usage:$0 [search path] [search text]"
else
	find $1 -type f -exec grep $2 -l {} \; >> temp1
	awk '{print "rm -i "$0}' temp1 > findfile
	chmod +x findfile
	rm temp1
fi